{'name': 'osk-layouts'},
{'name': 'theme', 'deps': theme_deps}
]
+data_resources_targets = []
foreach resource : data_resources
name = resource.get('name')
deps = resource.get('deps', [])
- gnome.compile_resources(
+ data_resources_targets += gnome.compile_resources(
'gnome-shell-' + name,
'gnome-shell-@0@.gresource.xml'.format(name),
source_dir: name,
endif
# for unit tests - gnome.compile_schemas() only looks in srcdir
-custom_target('compile-schemas',
+compiled_schemas = custom_target('compile-schemas',
input: schema,
output: 'gschemas.compiled',
command: [find_program('glib-compile-schemas'), '--strict', data_builddir],
- build_by_default: true)
+)
kwargs: introspection_common,
)
-executable('gnome-shell', 'main.c',
+gnome_shell_binary = executable('gnome-shell', 'main.c',
c_args: gnome_shell_cflags + typelib_cflags,
dependencies: gnome_shell_deps + [libshell_dep, libst_dep, mutter_dep],
include_directories: [conf_inc],
)
endif
-executable('gnome-shell-perf-helper', 'shell-perf-helper.c', js_resources,
+gnome_shell_perf_helper = executable('gnome-shell-perf-helper', 'shell-perf-helper.c', js_resources,
dependencies: [gtk_dep, gio_dep, m_dep],
include_directories: [conf_inc],
install_dir: libexecdir,
test('css-styling', test_theme,
suite: 'st',
+ depends: compiled_schemas,
workdir: meson.current_source_dir(),
)
endif
shell_typelib_path = fs.parent(libshell_gir[1].full_path())
st_typelib_path = fs.parent(libst_gir[1].full_path())
+# Shared tests dependencies.
+tests_dependencies = [
+ compiled_schemas,
+ data_resources_targets,
+ libst_gir[1],
+ libshell_gir[1],
+ libgvc_gir[1],
+]
+
unit_testenv = environment()
unit_testenv.set('GNOME_SHELL_DATADIR', data_builddir)
unit_testenv.append('GI_TYPELIB_PATH', gvc_typelib_path, separator: ':')
'unit/@0@.js'.format(test),
],
suite: 'unit',
+ depends: tests_dependencies,
env: local_test_env,
protocol: 'tap',
workdir: meson.current_source_dir())
options,
'@0@/shell/@1@.js'.format(meson.current_source_dir(), test_name),
],
+ depends: [
+ gnome_shell_binary,
+ gnome_shell_perf_helper,
+ tests_dependencies,
+ ],
is_parallel: false,
env: shell_testenv,
)